package com.duowei.diandan.bean;

import com.duowei.diandan.constant.PayType;
import com.google.gson.annotations.SerializedName;

/**
 * 消费方式(云会员)
 */
public class Ticket {

    public String id;

    @SerializedName("sl")
    public String num;

    public String title;

    @SerializedName("couponmoney")
    public float money;

    @SerializedName("least_cost")
    public Float leastCost;

    @SerializedName("type")
    public int ticketType;

    public String category;

    public Float discount;

    @SerializedName("goods_name")
    public String goodsName;

    public PayType payType;

    public Ticket() {
        this.payType = PayType.COUPON_TYPE;
    }

    /**
     * 储值消费、积分消费
     *
     * @param title
     * @param money
     * @param payType
     */
    public Ticket(String title, float money, PayType payType) {
        this.title = title;
        this.money = money;
        this.payType = payType;
    }
}
